package com.jingdianjichi.subject.domain.convert;

import com.jingdianjichi.subject.domain.entity.SubjectCategoryBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Description:拦截器
 * @Author: longqizu
 * @Date: 2024/2/3 10:20
 */
@Mapper
public interface SubjectCategoryConverter{
    SubjectCategoryConverter  INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);
    //BO转Category
    SubjectCategory convertBoToCategory(SubjectCategoryBO subjectCategoryBO);
    List<SubjectCategoryBO> convertBoToCategory(List<SubjectCategory> categoryList);

}
